<?php

namespace app\model\zs;

use think\Model;

class ZsMemberCouponProvide extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'member_coupon_provide';

    // 设置当前模型的数据库连接
    protected $connection = 'zs';

    const TYPE_GRASS = 3;

    const STATUS_ON = 0;
    const STATUS_OFF = 1;
    const STATUS_USE = 2;
    const STATUS_REFUND_WAIT = 3;
    const STATUS_REFUND_SUCCESS = 4;

    public function memberCoupon()
    {
        return $this->belongsTo(ZsMemberCoupon::class, 'tid', 'tid');
    }
}
